package com.yunxiangyue.CreateList

import androidx.room.Entity
import androidx.room.PrimaryKey


//创建歌单中的每一个列表项的对象  包括电话号码作为主键用来获取不同用户的信息
@Entity
class MusicListItem {

    @PrimaryKey(autoGenerate = true)
    var id:Int = 0

    var phone:String = ""

    var imgResource:ByteArray = byteArrayOf()

    var musicTitle:String = ""

    var info:String =""


    constructor(phone: String, imgResource: ByteArray, musicTitle: String, info: String) {
        this.phone = phone
        this.imgResource = imgResource
        this.musicTitle = musicTitle
        this.info = info
    }
}